package com.wuxiaoqin.server.service.impl;

import com.wuxiaoqin.server.mapper.FirstclassMapper;
import com.wuxiaoqin.server.mapper.SecondclassMapper;
import com.wuxiaoqin.server.service.IMenuClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-10-29
 */
@Service
public class IMenuClassServiceImpl implements IMenuClassService {

    @Autowired(required = false)
    private FirstclassMapper firstclassMapper;

    @Autowired(required = false)
    private SecondclassMapper secondclassMapper;



    @Override
    public Map<String, Object> getMenuClass() {

        Map<String, Object> list = new HashMap<>();

        list.put("first",firstclassMapper.getAllClass());
        list.put("second",secondclassMapper.getAllClass());
        return list;
    }



}
